package lei;
public class test{
	public static <s> void main(String[] args) {
		department dep1 = new department(01, "管理部");
		department dep2 = new department(02, "工人部");
		staff s1 = new staff(01, "赵", "女", 1992);
		staff s2 = new staff(02, "钱", "女", 1989);
		staff s3 = new staff(03, "孙", "男", 1987);
		staff s4 = new staff(04, "李", "女", 1998);
		staff s5 = new staff(05, "周", "男", 1994);
		staff s6 = new staff(06, "吴", "女", 1995);
		staff s7 = new staff(07, "郑", "女", 1995);
		staff s8 = new staff(10, "王", "男", 1998);
		staff s9 = new staff(11, "慕容", "男", 1991);
		staff s10 = new staff(12, "端木", "男", 2000);
		dep1.setManager(s1);dep2.setManager(s9);
		data b1=new data(1991,1,1);data b2=new data(1992,1,1);
	    data b3=new data(1993,1,1);data b4=new data(1994,1,1);
		data b5=new data(1995,1,1);data b6=new data(1996,1,1);
		data b7=new data(1997,1,1);data b8=new data(1998,1,1);
	    data b9=new data(1999,1,1);data b10=new data(2000,1,1);
		s1.setBirthday(b1);s2.setBirthday(b2);
		s3.setBirthday(b3);s4.setBirthday(b4);
        s5.setBirthday(b5);s6.setBirthday(b6);
		s7.setBirthday(b7);s8.setBirthday(b8);
		s9.setBirthday(b9);s10.setBirthday(b10);
        s1.setDepartment(dep1);s2.setDepartment(dep1);s3.setDepartment(dep1);
		s4.setDepartment(dep1);s5.setDepartment(dep1);s6.setDepartment(dep1);
		s7.setDepartment(dep1);s8.setDepartment(dep1);s9.setDepartment(dep2);
		s10.setDepartment(dep2);
        char s[]={s1.getName(),s2.getName(),s3.getName(),s4.getName(),s5.getName(),s6.getName(),s7.getName(),s8.getName()};
        char s11[]={s9.getName(),s10.getName()};
        System.out.println(dep1.getdeName() + "部门经理是：" + dep1.getManager());
		System.out.println(dep1.getdeName() + "员工：");
		for (int i = 0; i <s.length; i++) {
		    System.out.println(s[i]);
		}
		System.out.println(dep2.getdeName() + "部门经理：" + dep2.getManager());
		System.out.println(dep2.getdeName() + "员工：");
		for (int i = 0; i < s11.length; i++) {
		    System.out.println(s11[i]);
		}
      }
}
